<?php 
/**
 * @author Eugenio Fage
 * http://eugeniofage.wordpress.com/
 * http://code.google.com/p/monky/
 * 
 */
?><div class="genericform">
  <div align="center" class="recoverpass">
    <h4><?=$this->Html->link(__('forget your password?',true),array('action'=>'remind')) ?></h4>
  </div>
  <?php echo $form->create('User', array('action' => 'register','class'=>'insideLabel')); ?>
    <fieldset class="whitebox">
      <legend><span class="sign"><?=__('register') ?></span></legend>
      <?=$this->element('thirdPartyLogin'); ?>
      
      <?
      echo $this->Form->input('username',array('class'=>'title')).
        $this->Form->input('email',array('class'=>'title')).
        $this->Form->input('password',array('type'=>'password','class'=>'title')).
        $this->Form->input('passwordconfirmation',array('type'=>'password','label'=>'retype your password','class'=>'title'));
      ?>
      <?=$this->Form->submit(__('sign up!',true),array('class'=>"button title")); ?>
    </fieldset>
  <?php echo $form->end(); 
  echo $this->element('js-insidelabel');
  ?>
</div>



<?php 
// @todo meter errores en las vistas
//('error' => array('alphanumeric' =>
//__('Username must contain alpha-numeric characters', true), 'between' =>
//__('Username must be between 8 to 20 characters', true))));
?>